#coding=utf-8
import urllib
import urllib2
from restful import *

url = 'http://api.heclouds.com/devices/564894'
apikey = 'bquqqantb1kmTj4glbH4cz16Yx8A'

if __name__ == '__main__':
	header = {'api-key':apikey,'Content-type':'text/json'}
	body = '{"id":250}'
	print method_post(url,body,header)
